const http = uni.$u.http

const api = {
	recommendEvent: '/api/miniapp/index.php?act=recommend_event',
	recommendUser: '/api/miniapp/index.php?act=recommend_user',
	recommendNews: '/api/miniapp/index/recommend_news.php',
	bannerList: '/api/miniapp/index/banner_list.php',
	config: '/api/miniapp/wechat.php?act=config',
}

export const bannerList = (params, config) => http.get(api.bannerList,params, {
	custom: {
		toast: false
	},
	...config
})

export const recommendNews = (params, config) => http.get(api.recommendNews,params, {
	custom: {
		toast: false
	},
	
	...config
})

export const recommendEvent = (params, config) => http.get(api.recommendEvent,params, {
	custom: {
		toast: false
	},
	
	...config
})

export const recommendUser = (params, config) => http.get(api.recommendUser,params, {
	custom: {
		toast: false
	},
	
	...config
})

export const config = (params, config) => http.get(api.config,params, {
	custom: {
		toast: false
	},
	
	...config
})
